#ifndef SHARED_DATA_H
#define SHARED_DATA_H

#include <pthread.h>

// 数据包结构
struct DataPacket {
    int client_socket;
    int source;
    int destination;
    int type;
    char cmd[1024];
    
};

// 全局共享的数据包
extern struct DataPacket shared_packet;

// 互斥锁用于保护共享数据
extern pthread_mutex_t packet_mutex;

#endif